ThinkPHP5


think\console\Output
library\think\console\Output.php at line 41

Class Output

Output

public class Output

Class Output

See Also:
\think\console\output\driver\Console::setDecorated
\think\console\output\driver\Buffer::fetch
Method:
void setDecorated($decorated)
string fetch()
void info($message)
void error($message)
void comment($message)
void warning($message)
void highlight($message)
void question($message)

Constant Summary
final static int

OUTPUT_NORMAL

final static int

OUTPUT_PLAIN

final static int

OUTPUT_RAW

final static int

VERBOSITY_DEBUG

final static int

VERBOSITY_NORMAL

final static int

VERBOSITY_QUIET

final static int

VERBOSITY_VERBOSE

final static int

VERBOSITY_VERY_VERBOSE

Constructor Summary
void

__construct(str driver)

Method Summary
void

ask(Input input, mixed question, mixed default, mixed validator)

void

askHidden(Input input, mixed question, mixed validator)

void

confirm(Input input, mixed question, bool default)

void

choice(Input input, mixed question, mixed choices, mixed default)

protected void

askQuestion(Input input, Question question)

protected void

block(mixed style, mixed message)

void

newLine(int count)

输出空行

void

writeln(string messages, int type)

输出信息并换行

void

write(string messages, bool newline, int type)

输出信息

void

renderException(Exception e)

void

setVerbosity(mixed level)

void

getVerbosity()

void

isQuiet()

void

isVerbose()

void

isVeryVerbose()

void

isDebug()

void

describe(mixed object, mixed options)

Constant Detail

library\think\console\Output.php at line 49

OUTPUT_NORMAL

public final static int OUTPUT_NORMAL = 0

library\think\console\Output.php at line 51

OUTPUT_PLAIN

public final static int OUTPUT_PLAIN = 2

library\think\console\Output.php at line 50

OUTPUT_RAW

public final static int OUTPUT_RAW = 1

library\think\console\Output.php at line 47

VERBOSITY_DEBUG

public final static int VERBOSITY_DEBUG = 4

library\think\console\Output.php at line 44

VERBOSITY_NORMAL

public final static int VERBOSITY_NORMAL = 1

library\think\console\Output.php at line 43

VERBOSITY_QUIET

public final static int VERBOSITY_QUIET = 0

library\think\console\Output.php at line 45

VERBOSITY_VERBOSE

public final static int VERBOSITY_VERBOSE = 2

library\think\console\Output.php at line 46

VERBOSITY_VERY_VERBOSE

public final static int VERBOSITY_VERY_VERBOSE = 3

Constructor Detail

library\think\console\Output.php at line 60

__construct

public void __construct(str driver)

Method Detail

library\think\console\Output.php at line 67

ask

public void ask(Input input, mixed question, mixed default, mixed validator)

library\think\console\Output.php at line 75

askHidden

public void askHidden(Input input, mixed question, mixed validator)

library\think\console\Output.php at line 85

confirm

public void confirm(Input input, mixed question, bool default)

library\think\console\Output.php at line 93

choice

public void choice(Input input, mixed question, mixed choices, mixed default)


library\think\console\Output.php at line 103

askQuestion

protected void askQuestion(Input input, Question question)

library\think\console\Output.php at line 115

block

protected void block(mixed style, mixed message)

library\think\console\Output.php at line 124

newLine

public void newLine(int count)

输出空行


library\think\console\Output.php at line 134

writeln

public void writeln(string messages, int type)

输出信息并换行


library\think\console\Output.php at line 145

write

public void write(string messages, bool newline, int type)

输出信息


library\think\console\Output.php at line 150

renderException

public void renderException(Exception e)

library\think\console\Output.php at line 158

setVerbosity

public void setVerbosity(mixed level)


library\think\console\Output.php at line 166

getVerbosity

public void getVerbosity()


library\think\console\Output.php at line 171

isQuiet

public void isQuiet()

library\think\console\Output.php at line 176

isVerbose

public void isVerbose()

library\think\console\Output.php at line 181

isVeryVerbose

public void isVeryVerbose()

library\think\console\Output.php at line 186

isDebug

public void isDebug()

library\think\console\Output.php at line 191

describe

public void describe(mixed object, mixed options)

ThinkPHP5